import Http from "@/utils/request"

export const addAppointment = (data: AddOrder) => Http.post<BaseResponse<string>, AddOrder>({ url: "/appointment/addAppointment", data })

export const completeAppointment = (appointmentId: number) => Http.post<BaseResponse<string>, number>({ url: "/appointment/complete?", params: { appointmentId } })

export const appointmentReback = (appointmentId: number) => Http.post<BaseResponse<string>, number>({ url: `/appointment/reback/${appointmentId}` });

export const progressAppointment = (appointmentId: number) => Http.post<BaseResponse<string>, number>({ url: "/appointment/employee/progressAppointment?",   params: {appointmentId} });
